@extends('app')

@section('content')
<ul class="nav nav-tabs">
    <li class="active"><a href="{{ url('/admin/setting/admin')}}">信息列表</a></li>
    <li><a href="{{ url('/admin/setting/admin/create') }}">信息添加</a></li>
</ul>

<div class="form-inline mt20">

</div>

<div class="panel panel-default mt20">

    <div class="table-responsive panel-body">
        <table class="table table-hover">
            <thead>
            <tr>
                <th>编号</th>
                <th>用户名称</th>
                <th>用户邮箱</th>
                <th>管理组</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            @foreach($admin as $res)
            <tr id="news_{{ $res->id }}">
                <td>{{ $res->id }}</td>
                <td><a href="{{ url('admin/setting/admin/'.$res->id.'/edit') }}">{{ $res->name }} </a></td>
                <td>{{ $res->email }}</td>
                <td>{{ $res->display_name}}</td>
                <td>{{ $res->created_at }}</td>
                <td>
                    <a href="{{ url('/admin/setting/admin/'.$res->id.'/edit') }}"><i class="glyphicon glyphicon-edit"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
            @endforeach
            </tbody>
        </table>
    </div>
</div>
<div>{!! $admin->render() !!} </div>
@endsection
